package com.ithm;

public class Car {
    public Car() {
        System.out.println("-------------");
    }
    private String pinpai;
    private String yanse;
    private int jiage;
    private String leixing;
    private String zuowei;

    public Car( String pinpai,String yanse,int jiage,String leixing,String zuowei) {
        System.out.println(pinpai);
        System.out.println(yanse);
        System.out.println(jiage);
        System.out.println(leixing);
        System.out.println(zuowei);


    }
    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    public String getYanse() {
        return yanse;
    }

    public void setYanse(String yanse) {
        this.yanse = yanse;
    }

    public int getjiage() {
        return jiage;
    }

    public void setJiage(int jiage) {
        this.jiage = jiage;
    }
    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }

    public String getZuowei() {
        return zuowei;
    }

    public void setZuowei(String zuowei) {
        this.zuowei = zuowei;
    }
    public void gongneng(){
        System.out.println("跑");
        System.out.println("拉货");
    }
}
